<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台用户管理</title>
</head>
<link href="<?php echo $this->baseUrl;?>/admincss/style.css" rel="stylesheet" type="text/css" />

<body>
<?php
$arr_logininfo = AdminUser::getLoginInfo();
$display = "";
if ($arr_logininfo['gid'] == 3 || $arr_logininfo['gid'] == 4)
	$display = ' style="display:none" ';
?>
<table class="tableA"  width="100%" border="1" class="tableA" >
  <tr align="center">
    <td width="11%" nowrap="nowrap"><strong>用户名</strong></td>
    <td width="11%" nowrap="nowrap"><strong>组别</strong></td>
    <td width="11%" nowrap="nowrap"><strong>上次登录时间</strong></td>
    <td width="11%" nowrap="nowrap"><strong>上次登录IP</strong></td>
    <td width="6%" nowrap="nowrap"><strong>修改密码</strong></td>
    <td width="5%" nowrap="nowrap" <?php echo $display;?>><strong>删除</strong></td>
  </tr>
<!--
<?php
global $cfg;
foreach ($this->list as $v){
$group = $cfg['admingroup'][$v['gid']];
$v['lastlogintime'] = date ('Y-m-d H:i:s', $v['last_login_time']);
$v['lastloginip'] = long2ip ($v ['last_login_ip']);
$curl = $this->url($this->fullUrl, 'privilege', 'adminpassword','id='.$v['id']);
$durl=$this->url($this->fullUrl, 'privilege', 'admindel', 'id='.$v['id']);
print <<<EOT
-->
  <tr>
    <td nowrap="nowrap">{$v['username']}</td>
    <td nowrap="nowrap">{$group}</td>
    <td>{$v['lastlogintime']}</td>
    <td>{$v['lastloginip']}</td>
    <td align="center"><a href="{$curl}">修改</a></td>
    <td align="center" {$display}><a href="{$durl}" onclick='javascript:return window.confirm("确认删除{$v['username']}");'>删除</a></td>
  </tr>
<!--
EOT;
}
$indexurl =$this->url($this->fullUrl, 'privilege', 'adminmanage', 'nowp=1');
$nexturl = $this->url($this->fullUrl, 'privilege', 'adminmanage', 'nowp='.$this->page['next']);
$preurl = $this->url($this->fullUrl, 'privilege', 'adminmanage', 'nowp='.$this->page['previous']);
$lasturl = $this->url($this->fullUrl, 'privilege', 'adminmanage', 'nowp='.$this->page['totalpage']);
print <<<EOT
-->
  <tr>
    <td colspan="6">共{$this->page['totalnum']}个用户 {$this->page['nowp']}/{$this->page ['totalpage']}
<a href="{$indexurl}">首页</a>
<a href="{$nexturl}">下一页</a>
<a href="{$preurl}">前一页</a>
<a href="{$lasturl}">末页</a></td>
  </tr>
<!--
EOT;
?>-->
</table>
</body>
</html>
